let indexMixin={
    filters:{
        format(data,param){
            let date=new Date()
            let year=date.getFullYear()
            let month=(date.getMonth()+1).toString().padStart(2, "0");
            let day=date.getDate().toString().padStart(2, "0");
            let hours=date.getHours().toString().padStart(2, "0");
            let minutes=date.getMinutes().toString().padStart(2, "0");
            let seconds=date.getSeconds().toString().padStart(2, "0");
            return param.replace('YYYY', year).replace("MM", month)
                .replace('DD', day).replace('hh', hours).replace('mm', minutes).replace("ss", seconds)
        }
    }
}
export default indexMixin